import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',   
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/Home.vue'),
      children: [
        {
          path: '/home/project',
          name: 'project',
          component: () => import('../views/Project.vue')
        },
        {
          path: '/home/category',
          name: 'category',
          component: () => import('../views/Category.vue')
        },
        {
          path: '/home/projectName',
          name: 'projectName',
          component: () => import('../views/ProjectName.vue')
        },
        {
          path: '/home/technology',
          name: 'technology',
          component: () => import('../views/Technology.vue')
        },
      ]
    },
    
  ]
})

export default router
